<%@page import=" java.util.*"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/profile.css" />
</head>
<body>
<%
if(session.getAttribute("emailId")==null)
{
	response.sendRedirect("index.jsp");
}
else
{
String email = "";
String path = "";
String totalPath=request.getParameter("tempEmail");
StringTokenizer st = new StringTokenizer(totalPath,",");
while(st.hasMoreElements()){
 email = st.nextToken();
 path = st.nextToken();

}%>
<%request.setAttribute("flag","1"); %>
<html:form action="UpdatePic" method="post" enctype="multipart/form-data">
		<table cellpadding="5" cellspacing="5">
			<tr>
				<td>
							<img class=photo alt="hello" src="<%=path %>" >
						
				</td>
			</tr>
			<tr>
			<td align="left" class="field"><bean:message key="MetaConnect.SignUp.profile_picture_url" /></td>
			<td align="left">
		
				<html:file property="file" styleClass="txtfields"></html:file>
				</td>
			<td align="left"> 
				<html:errors property="file"></html:errors>
			</td>
		</tr>
			<tr>
				<td>
					<hr/>
				<html:submit value="Save"></html:submit>
				</td>
			</tr>
			
		</table>
			</html:form>	
</body>
<%} %>
</html>